package week3;
//******************************************************************************************
//          pp3_1.java                     Author:Duanzhixuan
//       同户名首字母和姓氏前五个字母及10-99的随机数组成的字符串
//******************************************************************************************

import java.security.SecureRandom;
import java.util.Scanner;
import java.util.Random;

public class pp3_1 {
    public static void main(String[] args) {
        String a,b,result;
        int num1;

        Random generator =new Random();
        Scanner scan = new Scanner(System.in);

        System.out.println("请输入用户名：");
        a = scan.nextLine();

        System.out.println("请输入姓氏：");
        b = scan.nextLine();

        char c = a.charAt(0);
        String d = b.substring(0,4);
        num1=generator.nextInt(90) + 10;

        result = c + d + num1;
        System.out.println(result);
    }
}

